package com.rt.easyjava.base.biz1.dto;


import com.rt.easyjava.common.base.CommonDto;
import com.rt.easyjava.common.enums.DeleteFlag;
import io.swagger.annotations.ApiModel;
import lombok.*;

import java.io.Serializable;

/**
 *
 * @author wuxiaoyong
 * @since 2020-03-18
 */

@ApiModel(description = "TmptUserSettingDto传输对象")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TmptUserSettingDto extends CommonDto implements Serializable{

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String value;
    private String deleteflag;
    private String createdate;
    private String createman;
    private String modifydate;
    private String modifyman;
    private Long createmanId;
    private Long modifymanId;
    private Long companyId;
    private String companyName;


    //----------------------------------------
    // 与页面交互时的参数
    //----------------------------------------
    private String createdate_Start;
    private String createdate_End;
    private String modifydate_Start;
    private String modifydate_End;

    //多选项Options，加_Str做数据显示
    private String deleteflag_Str;

    public String getDeleteflag_Str(){
        deleteflag_Str = DeleteFlag.explain(Integer.parseInt(deleteflag),"");
        return deleteflag_Str;
    }

    @Override
    public String toString() {
        return "TmptUserSettingDto{" +
            "id=" + id +
            ", name=" + name +
            ", value=" + value +
            ", deleteflag=" + deleteflag +
            ", createdate=" + createdate +
            ", createman=" + createman +
            ", modifydate=" + modifydate +
            ", modifyman=" + modifyman +
            ", createmanId=" + createmanId +
            ", modifymanId=" + modifymanId +
            ", companyId=" + companyId +
        "}";
    }
}
